package com.basic.thread;

public class ProductThread implements Runnable {

	ProductConsum action = null;

	ProductThread() {

	}

	ProductThread(ProductConsum action) {
		this.action = action;
	}

	@Override
	public void run() {
		while (true) {
			if (action != null) {
				action.Product();
			}
		}
	}

}
